home *** CD-ROM | disk | FTP | other *** search
- > > PS I don't think you can use C with AMOS.
-
- I have done this, but it is a bit of a hack. I wrote a small C routine
- which defines input and output paramters in one variable block, and
- initialise each with a destinctive value, i.e.
-
- int In1 = 1111;
- int In2 = 2222;
- int Out1 = 3333;
- int Local;
-
- void main()
-
- {
- ...
- }
-
- Then I compiled it with a compiler which compiles to assembler, I used
- NorthC.
-
- >From this assembler file I could see the input variables and change the
- assembler to make these act as parameters correctly. Finally the
- assembler was compiled and loaded into an Amos bank. This is neither easy
- or neat but id does work!
-
- Richard May. (rpm@sys.uea.ac.uk)
-
-